#include "NamedPipe.hpp"
#include "log.hpp"
// 当前进程负责写
int main() {
    WDNamedPipe pipef;
    logger log;
    log(INFO, "client open file done");
    while(1) {
        string msg;
        cout << "please enter$ ";
        getline(cin, msg);
        ssize_t n = pipef.Write(msg);
    }
    return 0;
}